﻿<phone:PhoneApplicationPage 
    x:Class="WakeApp.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="768"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    shell:SystemTray.IsVisible="True" xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit" Loaded="PhoneApplicationPage_Loaded">
	<phone:PhoneApplicationPage.Background>
		<ImageBrush Stretch="Fill"/>
	</phone:PhoneApplicationPage.Background>

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot">
    	<Grid.Background>
    		<ImageBrush Stretch="None" ImageSource="bg-sveglia.jpg"/>
    	</Grid.Background>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--TitlePanel contains the name of the application and page title-->
        <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="0" Height="130" Width="480">
        	<StackPanel.Background>
        		<ImageBrush Stretch="None" ImageSource="title-WakeApp.png"/>
        	</StackPanel.Background>
        </StackPanel>

        <!--ContentPanel - place additional content here-->
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0" >

            <ListBox Name="listBox1" Style="{StaticResource MyStyle1}" Margin="0,8,0,0" IsTabStop="True" SelectionChanged="listBox1_SelectionChanged" Tap="listBox1_Tap" Foreground="White" />
            <Button Content="+" Height="110" x:Name="buttonPiu" Width="110" Click="buttonPiu_Click" BorderThickness="0" BorderBrush="{x:Null}" Foreground="{x:Null}" HorizontalAlignment="Center" Margin="0,0,0,8" VerticalAlignment="Bottom" >
            	<Button.Background>
            		<ImageBrush Stretch="None" ImageSource="icona-aggiungi.png"/>
            	</Button.Background>
            </Button>
            <Button Content="i" Height="90" x:Name="buttonInfo" VerticalAlignment="Bottom" Width="90" Click="buttonInfo_Click" BorderThickness="0" Foreground="{x:Null}" BorderBrush="{x:Null}" HorizontalAlignment="Right" Margin="0,0,79,8" >
            	<Button.Background>
            		<ImageBrush Stretch="None" ImageSource="icona-info.png"/>
            	</Button.Background>
            </Button>
            <Button Content="R" Height="90" x:Name="button1" VerticalAlignment="Bottom" Width="90" Click="buttonRic_Click" BorderThickness="0" Foreground="{x:Null}" BorderBrush="{x:Null}" HorizontalAlignment="Left" Margin="79,0,0,8">
            	<Button.Background>
            		<ImageBrush Stretch="None" ImageSource="icona-riconoscimenti.png"/>
            	</Button.Background>
            </Button>
        </Grid>
    </Grid>
 
</phone:PhoneApplicationPage>